package test;


import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import pojo.SingerRequest;
import service.SingerService;

@Slf4j
@SpringBootTest
public class TestSingerService {

    @Autowired
    private SingerService singerService;

    @Test
    public void testAddSinger(){
        SingerRequest singerRequest = new SingerRequest();
        singerRequest.setPic("xxxx");
        singerRequest.setId(111111);
        singerRequest.setName("jefffffff");
        log.info("测试获取全部歌手列表：{}", singerService.addSinger(singerRequest));

    }
}
